require "../../../spec_helper"
require "../../../../src/detector/detectors/ruby/*"

describe "Detect Ruby Rails" do
  options = create_test_options
  instance = Detector::Ruby::Rails.new options

  it "gemfile/single_quot" do
    instance.detect("Gemfile", "gem 'rails'").should eq(true)
  end
  it "gemfile/double_quot" do
    instance.detect("Gemfile", "gem \"rails\"").should eq(true)
  end
end
